package com.haizhi.bean;

// Generated 2016-8-15 17:44:37 by Hibernate Tools 3.2.2.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity: 
 */
@Entity
@Table(name = "tb_admin", catalog = "db_lemon3d")
public class TbAdmin implements java.io.Serializable {

	/** 
	 * ����Աid.
	 */

	private Integer adminId;

	/** 
	 * ����Ա�ʺ�.
	 */

	private String adminName;

	/** 
	 * ����.
	 */

	private String adminPassword;

	/** 
	 * ����¼ʱ��.
	 */

	private Date adminLastLoginTime;

	public TbAdmin() {
	}

	public TbAdmin(String adminName, String adminPassword,
			Date adminLastLoginTime) {
		setAdminName(adminName);
		setAdminPassword(adminPassword);
		setAdminLastLoginTime(adminLastLoginTime);
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "admin_id", unique = true, nullable = false)
	public Integer getAdminId() {
		return this.adminId;
	}

	public void setAdminId(Integer adminId) {
		this.adminId = adminId;
	}

	@Column(name = "admin_name", nullable = false, length = 30)
	public String getAdminName() {
		return this.adminName;
	}

	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}

	@Column(name = "admin_password", nullable = false, length = 11)
	public String getAdminPassword() {
		return this.adminPassword;
	}

	public void setAdminPassword(String adminPassword) {
		this.adminPassword = adminPassword;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "admin_last_login_time", nullable = false, length = 19)
	public Date getAdminLastLoginTime() {
		return this.adminLastLoginTime;
	}

	public void setAdminLastLoginTime(Date adminLastLoginTime) {
		this.adminLastLoginTime = adminLastLoginTime;
	}

}
